package com.benny_driving_dri.thread;

import android.content.Context;
import android.util.Log;

import com.benny_driving_dri.act.TaximeterAct;

public class GetFormStateThread extends Thread {
	private Context context = null;

	private GetFormStateThread() {
	}

	private static class GetFormStateThreadHolder {
		private static GetFormStateThread instance = new GetFormStateThread();
	}

	public static GetFormStateThread getInstance() {
		return GetFormStateThreadHolder.instance;
	}

	public void start(Context context) {
		this.context = context;
		super.start();
	}

	@Override
	public void run() {
		Log.i("TaximeterAct", "     |--GetFormStateThread start");
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		Log.i("TaximeterAct", "     |--send handler");
		// TaximeterAct.handler.sendMessage(TaximeterAct.handler.obtainMessage(
		// 10,
		// context.getSharedPreferences("taximeter_test",
		// Context.MODE_PRIVATE).getInt("form_state", 1)));
	}
}
